package com.rd.teacher.jichao.day22;

public class Test40 {

    String str = new String("zrrd");
    char[] ch = {'x', 'y', 'z'};

    public static void main(String args[]) {
        Test40 t = new Test40();
        t.change(t.str, t.ch);
        System.out.print(t.str + " and ");
        System.out.print(t.ch);
    }

    public void change(String str, char ch[]) {
        str = "java";
        ch[0] = 'w';
    }
}